home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / applications / databases / fbase106.lha / FBase / FBaseSrc.lha / FBase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-01  |  935 b   |  47 lines

  1. /* Floppy Base include file */
  2.  
  3. #include "FBaseGST.h"
  4.  
  5. #define REG(x) register __ ## x
  6. #define ASM    __asm
  7. #define SAVEDS __saveds
  8.  
  9. /* Data Structures */
  10.  
  11. #define MAXKEYS   32
  12. #define MAXKEYLEN 16
  13.  
  14. struct Record {
  15.     struct Node    Node;
  16.     struct Record *Next;
  17.     struct Record *Parent;
  18.     struct Record *Sub;
  19.     STRPTR         FName;
  20.     STRPTR         FRem;
  21.     ULONG          Size;
  22.     UWORD          Flags;
  23.     UWORD          Depth;
  24.     LONGBITS       Keys;
  25.     ULONG          Unique;
  26. };
  27. typedef struct Record RECORD;
  28.  
  29. #define RECORD_DIRECTORY 1
  30. #define RECORD_ROOT      2
  31.  
  32. struct Floppy {
  33.     struct Node  Node;
  34.     struct List  Records;
  35.     RECORD      *HeadRecord;
  36. };
  37. typedef struct Floppy FLOPPY;
  38.  
  39. /* MUI stuff */
  40.  
  41. extern struct Library *IntuitionBase,*UtilityBase,*GfxBase,*DOSBase,*IconBase,*IFFParseBase;
  42. extern struct Library *MUIMasterBase;
  43.  
  44. #ifndef MAKE_ID
  45. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  46. #endif
  47.